import 'package:flutter/material.dart';

class Circular extends StatelessWidget {
  const Circular({super.key,
    required this.child,
    this.radius,
    this.borderRadius,
    this.padding,
    this.margin,
    this.width,
    this.height,
    this.gradient,
    this.shape,
    this.color,
    this.alignment,
    this.clipBehavior
  });

  final Widget child;
  final double? radius;
  final BorderRadius? borderRadius;
  final BoxShape? shape;
  final Color? color;
  final Gradient? gradient;
  final EdgeInsets? padding;
  final EdgeInsets? margin;
  final double? width;
  final double? height;
  final Alignment? alignment;
  final Clip? clipBehavior;

  @override
  Widget build(BuildContext context) {
    return Container(
      width: width,height: height,
      padding: padding,margin: margin,
      alignment: alignment,
      clipBehavior: clipBehavior??Clip.none,
      decoration: BoxDecoration(
        color: color,
        shape: shape ?? BoxShape.rectangle,
        gradient: gradient,
        borderRadius: borderRadius ?? BorderRadius.circular(radius ?? 0)
      ),
      child: child,
    );
  }
}
